using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CoreData;
using Services;
using Helper;
namespace ActionServices
{

    public interface IVwTempStudentDepositInfoActionService : BaseActionService
    {
        long Save(object _model);
        IList<CoreData.VwTempStudentDepositInfo> GetListByLINQ(Func<CoreData.VwTempStudentDepositInfo, Boolean> _where);
        CoreData.VwTempStudentDepositInfo GetOneByLINQ(Func<CoreData.VwTempStudentDepositInfo, Boolean> _where);
        bool Delete(object _model);
        //VwTempStudentDepositInfo GetByGuidID(string GuidID);
        IList<VwTempStudentDepositInfo> GetByCode(string Code);
    }

    public partial class VwTempStudentDepositInfoActionService:IVwTempStudentDepositInfoActionService
    {
        VwTempStudentDepositInfoService Service;

        public VwTempStudentDepositInfoActionService()
       {
           Service = new VwTempStudentDepositInfoService();
       }

       #region Main Method

       public virtual long Save(object _model)
       {
           return Service.Save(_model);
       }

      //public virtual Audit GetByGuidID(string GuidID)
      // {
      //     return GetOneByLINQ(c => c.AuditGuidID.Equals(GuidID));
      // }

       public virtual object GetByID(long _id)
       {
           return Service.GetByID(_id);
       }

       public virtual object GetList()
       {
           return Service.GetList();
       }

       public virtual IList<CoreData.VwTempStudentDepositInfo> GetListByLINQ(Func<CoreData.VwTempStudentDepositInfo, Boolean> _where)
       {
           return Service.GetListByLINQ(_where);
       }

       public virtual CoreData.VwTempStudentDepositInfo GetOneByLINQ(Func<CoreData.VwTempStudentDepositInfo, Boolean> _where)
       {
           return Service.GetOneByLINQ(_where);
       }

       public virtual object GetList(string _searchstring)
       {
           return Service.GetList(_searchstring);
       }

       public virtual bool Delete(object _model)
       {
           return Service.Delete(_model);
       }

       #endregion


       #region Other Method

       public virtual IList<VwTempStudentDepositInfo> GetByCode(string Code)
       {
           return null;//Service.GetByCode(Code);
       }

       #endregion

    }
         
}
